import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;

final class StatusBar extends JPanel{
  private final Doer frame;
  private final JLabel line=new JLabel("L: current line"),
                       direction=new JLabel(),
		       systemDirection=new JLabel();
  StatusBar(Doer frame){
    this.frame=frame;

    Dimension screemSize=Toolkit.getDefaultToolkit().getScreenSize();
    screemSize=new Dimension(screemSize.width/4,25);
    line.setHorizontalAlignment(JLabel.LEFT);
    line.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    line.setPreferredSize(screemSize);

    direction.setHorizontalAlignment(JLabel.LEFT);
    direction.setText("cd: the current file's dir");
    direction.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    direction.setPreferredSize(screemSize);

    systemDirection.setHorizontalAlignment(JLabel.LEFT);
    systemDirection.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
    systemDirection.setPreferredSize(screemSize);

    add(systemDirection);
    add(direction);
    add(line);
    setLayout(new FlowLayout(FlowLayout.LEFT,10,3));
  }
  public JLabel getLabel(){
    return line;
  }
  public JLabel getCD(){
    return direction;
  }
  public JLabel getSystemDirection(){
    return systemDirection;
  }
}
